import 'dart:convert' as convert;

class Location {
  double lng;
  double lat;
  String province;
  String city;
  String district;
  String address;
  int errorCode;
  String errorInfo;

  Location();
  Location.fromJson(String data) {
    Map<String, dynamic> maps = convert.jsonDecode(data);
    lng =maps["lng"];
    lat = maps["lat"];
    errorCode = maps["errorCode"];
    errorInfo = maps["errorInfo"];
    province = maps["province"]??"";
    city = maps["city"]??"";
    district = maps["district"]??"";
    address = maps["address"]??"";
  }
}

